home *** CD-ROM | disk | FTP | other *** search
Text File | 1997-05-22 | 1.1 KB | 41 lines | [TEXT/CWIE] |
- //
- // File: Texture.c
- //
- // Contains: Support for adding a QuickTime movie or a PICT as a texture on a QD3D object.
- //
- // Written by: Tim Monroe
- // parts modeled on BoxMoov code by Rick Evans and Robert Dierkes
- //
- // Copyright: © 1996 by Apple Computer, Inc., all rights reserved.
- //
- // Change History (most recent first):
- //
- // <1> 12/16/96 rtm first file
- //
- //
- // TODO:
-
- #pragma once
- #include <QDOffscreen.h>
- #include <Movies.h>
-
- #include "QD3D.h"
- #include "QD3DGroup.h"
- #include "QD3DStorage.h"
-
- // data structures
-
- typedef struct {
- TQ3StoragePixmap fStoragePixmap; // the QD3D pixmap
- GWorldPtr fpGWorld; // the offscreen buffer into which the movie is drawn
- Movie fMovie; // the movie source for animated textures
- PicHandle fPicture; // the picture source for static textures
- } Texture, *TexturePtr, **TextureHdl;
-
-
- // function prototypes
-
- TextureHdl VR3DTexture_New (Boolean isTextureMovie);
- Boolean VR3DTexture_Delete (TextureHdl theTexture);
- TQ3Status VR3DTexture_AddToGroup (TextureHdl theTexture, TQ3GroupObject theGroup);
- Boolean VR3DTexture_NextFrame (TextureHdl pAnimTxtr);